package org.bw.bookstore.book.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.bw.bookstore.book.mapper.TbAlarmRecordMapper;
import org.bw.bookstore.book.service.WarningRecordService;
import org.bw.bookstore.common.entity.TbAlarmRecord;
import org.bw.bookstore.common.utils.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author GuoShuai
 * @Date 2020-10-22 下午 03:04
 * @Version 1.0
 **/
@Service
public class WarningRecordServiceimpl implements WarningRecordService {
    private String filePath;
    @Autowired
    TbAlarmRecordMapper tbAlarmRecordMapper;
    @Override
    public ResponseResult chargebackRecord(TbAlarmRecord facePath) {

        return null;
    }

    @Override
    public ResponseResult selectChargebackRecord() {
        ResponseResult result = ResponseResult.SUCCESS();
        List<TbAlarmRecord> tbAlarmRecords = tbAlarmRecordMapper.selectList(new QueryWrapper<TbAlarmRecord>());
        result.setResult(tbAlarmRecords);
        return result;
    }
}
